﻿<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>



<meta charset="utf-8">
<title>欢迎光临 Music Store</title>
<link type="text/css" rel="Stylesheet" href="style/front.css" />
<script type="text/javascript" src="script/jquery-1.11.3.js"></script>
<script src="script/jquery.validate.min.js"></script>
<script src="script/messages_zh.js"></script>
<script>
$(function(){
	$.validator.setDefaults({
	    submitHandler: function() {
	    	$("#doLogin").submit();
	    }
	});
	 $("#doLogin").validate();
});
</script>
<h3 id="main-title">用户登录</h3>
<form id="doLogin" action="doLogin" method="post">
	<input name="returnUrl" value="${param.returnUrl }" type="hidden" />
	<table>
		<tr>
			<td>用户名：</td>
			<td><input type="text" id="username" required name="username" />
				<label class="error"></label></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input type="password" id="password" required
				name="password" /> <label class="error"></label></td>
		</tr>
		<tr>
			<td></td>
			<td><input id="btnSubmit" type="submit" name="btnSubmit"
				value="登录" /> <a href="register">注册</a></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><label class="error">${error}</label>
			</td>
		</tr>
	</table>
</form>

